From: Dan Nicholson Date: Tue, 17 Mar 2015 19:20:53 +0000 (-0700) Subject: fsck: Fix object count output X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~848 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=553d7840d5d5ada906da8328fc84bc8b40c6d8b1;p=ostree.git fsck: Fix object count output The object count comes from g_hash_table_size(), so it's not a 0 based index. In order to maintain the mod calculations correctly, just print out index + 1. https://bugzilla.gnome.org/show_bug.cgi?id=746360 --- diff --git a/src/ostree/ot-builtin-fsck.c b/src/ostree/ot-builtin-fsck.c index 333614cd..ae1dcce4 100644 --- a/src/ostree/ot-builtin-fsck.c +++ b/src/ostree/ot-builtin-fsck.c @@ -224,7 +224,7 @@ fsck_reachable_objects_from_commits (OstreeRepo *repo, goto out; if (mod == 0 || (i % mod == 0)) - g_print ("%u/%u objects\n", i, count); + g_print ("%u/%u objects\n", i + 1, count); i++; }